# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libgepub
pkgver=0.6.0
pkgrel=2
pkgdesc="A GObject based library for handling epub documents"
url="https://gitlab.gnome.org/GNOME/libgepub"
arch="all"
license="LGPL-2.1-or-later"
makedepends="meson webkit2gtk-dev libsoup-dev glib-dev libxml2-dev libarchive-dev
	gobject-introspection-dev"
checkdepends="gtk+3.0-dev"
options="!check" # Need an external epub file
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/libgepub/${pkgver%.*}/libgepub-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="90c8df55c2465ab3c44092a772d568b412cea60f20d0f32d33b124d70ece1655dcf53d87c5effa2c494bf103c2e51d31192edf0ad71b46fa61471f94b5768c99  libgepub-0.6.0.tar.xz"
